[?php echo link_to_function(image_tag('/sfFormGuiPlugin/images/puce-plus'), visual_effect('toggle_blind','order-<?php echo $this->getModuleName(); ?>',array('duration'=>'.2')));?]
<ul class="sorter" id="order-<?php echo $this->getModuleName(); ?>">
    <li class="list-header">
        <?php foreach ($this->getTableMap()->getColumns() as $column): ?>
        <span>[?php echo __('<?php echo sfInflector::humanize(sfInflector::underscore($column->getPhpName())) ?>');?]</span>
        <?php endforeach; ?>
    </li>
    [?php foreach ($<?php echo $this->getSingularName() ?>List as $<?php echo $this->getSingularName() ?> ): ?]
    <li id="item_[?php echo $<?php echo $this->getSingularName(), '->getPrimaryKey()'?> ?]" class="sortable">
        [?php echo image_tag('/sfFormGuiPlugin/images/handle','class=move'); ?]
        <?php foreach ($this->getTableMap()->getColumns() as $column): ?>
        <span>[?php echo $<?php echo $this->getSingularName() ?>->get<?php echo $column->getPhpName() ?>() ?]</span>
        <?php endforeach; ?>
        <span class="actions">
            [?php echo link_to(image_tag('/sfFormGuiPlugin/images/edit','alt=edit class=action'),'<?php echo $this->getModuleName(); ?>/edit?<?php echo $this->getPrimaryKeyUrlParams() ?>);?]
            [?php echo link_to(image_tag('/sfFormGuiPlugin/images/delete','alt=delete class=action'),'<?php echo $this->getModuleName(); ?>/delete?<?php echo $this->getPrimaryKeyUrlParams() ?>,array(
                'confirm'=> __('Are you sure ?')
            ));?]
        </span>
    </li>
    [?php endforeach; ?]
</ul>
[?php echo sortable_element('order-<?php echo $this->getModuleName(); ?>', array(
  'url'      => '<?php echo $this->getModuleName() ?>/sort',
  'update'   => 'feedback',
  'loading'  => visual_effect('appear', 'indicator', array()),
  'complete' => visual_effect('highlight', 'feedback', array(
  'success'  => visual_effect('highlight', 'feedback', array(
      'afterFinish' => 'function() {'.
          visual_effect('DropOut', 'feedback', array('afterFinish'=>' function() { $("feedback").update().show(); }')).
      '}'
  )),
  'only' => 'sortable',
  'handle' => 'move'
)) ?]